import { request } from '@/utils'

export default {
  getCards: (params = {}) => request.post('card/all_list', params),
  getParentDepartments: (params = {}) => request.post('department/parent/page', params),
  getPostById: (id) => request.get(`/post/${id}`),
  addPost: (data) => request.post('/post', data),
  updateCard: (data) => request.post(`/card/update/` + data.id, data),
  deleteCard: (id) => request.post(`/card/delete/${id}`),
}
